<template>
    <div>
        <van-list
            v-model="loading"
            :finished="finished"
            finished-text="没有更多了"
        >
        <van-cell
            v-for="item in searchList"
            :key="item.id"
            :title="item"
            @click="gotoSearch(item)">
        </van-cell>
    </van-list>
    </div>
</template>

<script>
export default {
    name: "",
    props: ["searchList"],
    data() {
        return {
            loading: false, //是否处于加载状态
            finished: true, // 是否加载完成
        };
    },

    components: {},

    computed: {
        
    },

    created() {},

    mounted() {},

    methods: {
        gotoSearch(val){
            console.log(val);
            //点击搜索列表搜索
            this.$emit("goSearch", val);
        }
    },
};
</script>
<style scoped>
</style>